import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_auth_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeAuthModelEntity {
	String? id;
	String? fUserId;
	String? name;
	String? card;
	dynamic phone;
	String? certificateFront;
	String? certificateBack;
	String? checkStatus;
	dynamic checkRemark;
	int? removed;
	dynamic remark;
	int? versionNum;
	String? createTime;
	String? updateTime;
	dynamic fCreateUserId;
	dynamic fUpdateUserId;

	XinHeAuthModelEntity();

	factory XinHeAuthModelEntity.fromJson(Map<String, dynamic> json) => $XinHeAuthModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeAuthModelEntityToJson(this);

	XinHeAuthModelEntity copyWith({String? id, String? fUserId, String? name, String? card, dynamic phone, String? certificateFront, String? certificateBack, String? checkStatus, dynamic checkRemark, int? removed, dynamic remark, int? versionNum, String? createTime, String? updateTime, dynamic fCreateUserId, dynamic fUpdateUserId}) {
		return XinHeAuthModelEntity()
			..id= id ?? this.id
			..fUserId= fUserId ?? this.fUserId
			..name= name ?? this.name
			..card= card ?? this.card
			..phone= phone ?? this.phone
			..certificateFront= certificateFront ?? this.certificateFront
			..certificateBack= certificateBack ?? this.certificateBack
			..checkStatus= checkStatus ?? this.checkStatus
			..checkRemark= checkRemark ?? this.checkRemark
			..removed= removed ?? this.removed
			..remark= remark ?? this.remark
			..versionNum= versionNum ?? this.versionNum
			..createTime= createTime ?? this.createTime
			..updateTime= updateTime ?? this.updateTime
			..fCreateUserId= fCreateUserId ?? this.fCreateUserId
			..fUpdateUserId= fUpdateUserId ?? this.fUpdateUserId;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}